<template>
	<view class="content">
		<view>
			<image class="name" src="/static/police/name.png" mode="aspectFit"></image>
		</view>
		<view class="buttons">
			<image class="button" @click="routeTo('/pages/plice/noticePages/noticePages')"
				src="../../static/police/1.png" mode="aspectFit"></image>
			<image class="button" @click="routeTo('/pages/plice/formSubmit/formSubmit', 'searchForm')"
				src="../../static/police/2.png" mode="aspectFit"></image>
			<image class="button" @click="routeTo('pages/plice/formSubmit/formSubmit', 'adviseForm')"
				src="../../static/police/3.png" mode="aspectFit"></image>
		</view>
		<view class="bottom">
			<p>版权所有 © 中共邵阳市委政法委员会</p>
			<!-- <p style='margin: 30rpx 0;'>京ICP备19020621号-1</p> -->
		</view>

	</view>
</template>

<script>
	export default {
		data() {
			return {

			}
		},
		onLoad() {

		},
		methods: {
			routeTo(page, type) {
				if (type == 'searchForm') {
					uni.$u.route(page, {type})
				} else if (type == 'adviseForm') {
					uni.$u.route(page, {type})
				} else {
					uni.$u.route(page)
				}
			}
		}
	}
</script>

<style lang="scss">
	.content {
		width: 100%;
		height: 100%;
		background: url(~@/static/index/index_bg.jpg);
		background-size: cover;
		padding-bottom: 20rpx;

		.name {
			width: 100%;
			margin-top: 60rpx;
			// height: 40rpx;
		}

		.buttons {
			margin-top: 50rpx;
			display: flex;
			flex-wrap: nowrap;
			flex-direction: column;
			align-items: center;

			.button {
				width: 480rpx;
				height: 200rpx;
				margin-top: 0rpx;
			}
		}

		.bottom {
			margin-top: 250rpx;
			text-align: center;
			line-height: 38rpx;
			font-size: 30rpx
		}
	}
</style>
